import { PrimaryColumn , Column, Entity } from 'typeorm';

@Entity()
class NoteDetail {

    @PrimaryColumn()
    id: number;

    @Column({
        type: "varchar",
        length: 255,
        nullable: false,
    })
    title: string;

    @Column({
        type: "varchar",
        length: 255,
    })
    summary: string;

    @Column({
        type: "varchar",
        length: 255,
        nullable: false,
    })
    content: string;
}

export { NoteDetail }